// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.common.entity.WorkflowDto;
import com.liuxinlong.modules.dao.WorkFlowDao;
import com.liuxinlong.modules.entity.WorkFlow;
import com.liuxinlong.modules.mapper.WorkFlowMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年4月23日
 */
@Service
public class WorkFlowDaoImpl extends ServiceImpl<WorkFlowMapper, WorkFlow> implements WorkFlowDao {

    @Override
    public List<WorkFlow> pageWorkflowList(Map<String, Object> queryParam) {
        return baseMapper.pageWorkflowList(queryParam);
    }

    @Override
    public int getWorkflowCount(Map<String, Object> queryParam) {
        return baseMapper.getWorkflowCount(queryParam);
    }

    @Override
    public WorkFlow getBusinessLatestWorkflow(String businessId) {
        return baseMapper.getBusinessLatestWorkflow(businessId);
    }

    @Override
    public List<WorkFlow> getWorkflowListByIds(List<String> idList) {
        return baseMapper.getWorkflowListByIds(idList);
    }

    @Override
    public List<WorkflowDto> getBusinessWorkflowList(String businessId) {
        return baseMapper.getBusinessWorkflowList(businessId);
    }
}
